﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wucDonHang.ascx.cs" Inherits="CungMuaC5.WebUC.ucDonHang" %>
<style type="text/css">
    .style2
    {
        width: 100%;
    }
    .style4
    {
        width: 216px;
    }
    .style9
    {
        width: 170px;
    }
    .style10
    {
        width: 97px;
    }
    .style11
    {
        width: 161px;
    }
    .style12
    {
        width: 274px;
    }
</style>
<asp:DataList ID="DataList1" runat="server"
        Width="707px" style="margin-right: 0px">
        <ItemTemplate>
        <div>
            <div style="float: left; width: 313px;">
                Mã đơn hàng:
                <asp:Label ID="Label11" runat="server" Text='<%# Eval("MaDH") %>'></asp:Label>
            </div>
            <div style="float: right; width: 321px;">
                Ngày đặt hàng:
                <asp:Label ID="Label10" runat="server" Text='<%# Eval("NgayDatHang") %>'></asp:Label>
            </div>
            </div>
            <table class="style2" style="border: thin solid #C0C0C0">
                <tr>
                    <td align="center" class="style12" 
                        style="border: thin solid #C0C0C0; background-color: #808080; color: #FFFFFF;">
                        Phiếu/Sản phẩm</td>
                    <td align="center" class="style9" 
                        style="border: thin solid #C0C0C0; background-color: #808080; color: #FFFFFF;">
                        Đơn giá</td>
                    <td align="center" class="style10" 
                        style="border: thin solid #C0C0C0; background-color: #808080; color: #FFFFFF;">
                        Số lượng</td>
                    <td align="center" 
                        style="border: thin solid #C0C0C0; background-color: #808080; color: #FFFFFF;">
                        Thành tiền</td>
                </tr>
                <tr>
                    <td class="style12" style="border: thin solid #C0C0C0;">
                        <asp:Label ID="lblProductName" runat="server" ></asp:Label>
                    </td>
                    <td align="center" class="style9" style="border: thin solid #C0C0C0;">
                        <asp:Label ID="lblNewPrice" runat="server" ></asp:Label>
                    </td>
                    <td align="center" class="style10" style="border: thin solid #C0C0C0;">
                        <asp:Label ID="lblAmount" runat="server" Text='<%# Eval("SoLuong") %>'></asp:Label>
                    </td>
                    <td align="right" style="border: thin solid #C0C0C0;">
                        <asp:Label ID="lblThanhTien" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" colspan="3" style="border: thin solid #C0C0C0;">
                        Phí giao hàng</td>
                    <td align="right" style="border: thin solid #C0C0C0;">
                        <asp:Label ID="lblPhiChuyen" runat="server" Text='<%# Eval("PhiGiaoHang","{0}đ") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" colspan="3" style="border: thin solid #C0C0C0;">
                        Số tiền phải trả</td>
                    <td align="right" style="border: thin solid #C0C0C0;">
                        <asp:Label ID="lblSum" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
            </table>
            <table class="style2">
                <tr>
                    <td class="style4" style="background-color: #CCCCCC">
                        Trạng thái:
                        <asp:Label ID="lblTrangThai" runat="server" Text='<%# Eval("TinhTrang") %>'></asp:Label>
                    </td>
                    <td class="style11" style="background-color: #CCCCCC">
                        <asp:Label ID="lblThanhToan" runat="server" Text='<%# Eval("TinhTrangThanhToan") %>'></asp:Label>
                    </td>
                    <td style="background-color: #CCCCCC">
                        Hình thức thanh toán:
                        <asp:Label ID="lblHinhThuc" runat="server" Text='<%# Eval("HinhThucThanhToan") %>'></asp:Label>
                    </td>
                </tr>
            </table>
            <div>
                <div style="float: right; width: 110px;">
                    <asp:LinkButton ID="Delete" runat="server" 
                        style="font-weight: bold; color: #000000;" CommandName='<%# Eval("MaDH") %>' 
                        onclick="LinkButton2_Click">X Hủy đơn hàng</asp:LinkButton>
                </div>
            </div>
            <br />
            <br />
        </ItemTemplate>
    </asp:DataList>


